﻿@model ArbabTravelsERP.Models.MENU
@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@*For Progress Bar*@
<script type="text/javascript">
    $(document).ready(function () {
        $('#formControl').submit(function () {
            // submit the form
            //if ($(this).valid())
            {
                $('#progressBar').show();
            }
        });
    });
</script>
@*For Progress Bar [END]*@

<h2>Delete</h2>
@using (Html.BeginForm("Delete", "Menu", FormMethod.Post, new { @id = "formControl", @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
        <!-- page content -->
    <div class="right_col" role="main">
        <div class="">
            <div class="page-title">
                <div class="title_left">
                    <h3>Delete Menu</h3>
                </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>Delete Menu</h2>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                            @if (ViewBag.Success != null)
                            {
                                <div class="alert alert-dismissable alert-success">
                                    <button type="button" class="close" data-dismiss="alert">×</button>
                                    @ViewBag.Success
                                </div>
                            }
                            else if (ViewBag.Error != null)
                            {
                                <div class="alert alert-dismissable alert-danger">
                                    <button type="button" class="close" data-dismiss="alert">×</button>
                                    @ViewBag.Error
                                </div>
                            }

                            <table class="table table-striped table-hover">
                                <tr>
                                    <td width="20%">Parent Menu</td>
                                    <td>
                                        @Html.DisplayFor(model => model.PARENT_MENU_NAME, new { @class = "form-control", @placeholder = "Menu Name", @autocomplete = "off", @readonly = "readonly" })
                                        @Html.HiddenFor(model => model.PARENT_MENU_ID)
                                    </td>

                                </tr>
                                <tr>
                                    <td width="20%">Menu Name</td>
                                    <td>
                                        @Html.DisplayFor(model => model.MENU_NAME, new { @class = "form-control", @placeholder = "Menu Name", @autocomplete = "off" })
                                        @Html.HiddenFor(model => model.MENU_NAME)
                                    </td>
                                </tr>
                                <tr>
                                    <td>Menu Title</td>
                                    <td>
                                        @Html.DisplayFor(model => model.MENU_TITLE, new { @class = "form-control", @placeholder = "Menu Title", @autocomplete = "off" })
                                        @Html.HiddenFor(model => model.MENU_TITLE)
                                    </td>
                                </tr>
                                <tr>
                                    <td>Menu URL</td>
                                    <td>@Html.DisplayFor(model => model.MENU_URL, new { @class = "form-control", @placeholder = "Menu Url", @autocomplete = "off" }) </td>
                                </tr>
                                <tr>
                                    <td>Is Parent Menu</td>
                                    <td>@Html.DisplayFor(model => model.IS_PARENT, new { @class = "form-control", @disabled = "disabled" }) </td>

                                </tr>
                                <tr>
                                    <td>Remark</td>
                                    <td>@Html.DisplayFor(model => model.REMARK, new { @class = "form-control", @placeholder = "Remark", @autocomplete = "off" }) </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <div class="col-sm-3 col-md-3">

                                            <button type="submit" id="btnSubmit" class="btn btn-primary" title="Submit" value="Submit">Delete</button>
                                            <div class="btn btn-default">
                                                @Html.ActionLink("Cancel", "Index")
                                            </div>

                                        </div>
                                    </td>
                                </tr>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
}

